package patterns.Status;
//状态
public enum MachineStatus {
    IDLE("空闲", "可分配任务"),
    WORKING("作业中", "正在执行任务"),
    MAINTENANCE("维修中", "不可用"),
    OFFLINE("离线", "无法连接"),
    LOW_FUEL("低油量", "需要加油");

    private String description;
    private String actionHint;

    MachineStatus(String description, String actionHint) {
        this.description = description;
        this.actionHint = actionHint;
    }

    public String getDescription() {
        return description;
    }

    public String getActionHint() {
        return actionHint;
    }

    public boolean isAvailable() {
        return this == IDLE;
    }
}